package com.zsc.wxapp.controller.businessUser;

import com.zsc.wxapp.entity.vo.PrintTaskVO;
import com.zsc.wxapp.result.Result;
import com.zsc.wxapp.services.PrintTaskService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api/wxapp/businessUser/printTask")
//@Api(tags = "B端用户获取打印任务接口")
@Slf4j
public class PrintTaskController {

    @Resource
    private PrintTaskService printTaskService;

    /**
     * 获取打印任务列表
     * @return
     */
    @GetMapping("/getPrintTaskList")
//    @ApiOperation("获取打印任务列表")
    public Result<List<PrintTaskVO>> getPrintTaskList() {
        log.info("获取打印任务列表");
        List<PrintTaskVO> printTaskVOList = printTaskService.getPrintTaskList();
        return Result.success(printTaskVOList);
    }

}
